package com.lcq.springbootcreate.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class getConfig {
    @Autowired
    configBean bean;

    @GetMapping({"/config"})
    public String getinformation(){
        return "年级"+bean.grade+"班级"+bean.classnum;
    }
}
